package com.luhuiguo.cms.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.luhuiguo.cms.client.presenter.NavigationPresenter;

@Singleton
public class NavigationView extends ResizeComposite implements NavigationPresenter.Display {

    private static NavigationViewUiBinder uiBinder = GWT.create(NavigationViewUiBinder.class);

    interface NavigationViewUiBinder extends UiBinder<Widget, NavigationView> {
    }

    @UiField(provided = true)
    ChannelsView channelsView;

    @Inject
    public NavigationView(ChannelsView channelsView) {

        this.channelsView = channelsView;

        initWidget(uiBinder.createAndBindUi(this));
        GWT.log("NavigationView created");

    }

    @Override
    public Widget asWidget() {
        return this;
    }

    @Override
    public void addWidget(Widget widget) {

    }

    @Override
    public void removeWidget(Widget widget) {

    }

    @Override
    public void showWidget(Widget widget) {

    }

}
